str = 'abc'

# 必须要是可以转成功的数字字符串
str = '123'
# ValueError: invalid literal for int() with base 10: 'abc'
v = int(str)

print(v)
